import httpFetch from "share/httpFetch";
import config from "config";
import errorMessage from "share/errorMessage";

export default {
  getSettlementCosts(params) {
    return httpFetch.post(`${config.baseUrl}/api/invoices/get/public`, params)
      .catch(err => {
        errorMessage(err.response);
        throw err;
      });
  }
}
